echo "1.shutting down stock-web..."
ps -ef | grep stock-web | grep -v 'grep'  | grep -v 'stock-web.out' | awk '{print $2}' | xargs kill -15
sleep 10
echo "2.starting stock-web..."
nohup java -Dspring.profiles.active=prod -Djasypt.encryptor.password=xxx -Xms4096m -Xmx4096m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:gc.log -DJpom.application=prod-stock-web -DJpom.basedir=/opt/soft/prod-stock-web -jar /opt/soft/prod-stock-web/stock-web.jar > /opt/soft/prod-stock-web/stock-web.out 2>&1 &
tail -400f /opt/soft/prod-stock-web/stock-web.out
